package ${packages.dto};

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import javax.validation.constraints.Min;

/**
 * ${classInfo.className} 查询条件。
 */
@Data
public class ${classInfo.className}QueryRequest implements Serializable {

    @Min(value = 1, message = "页码至少为 1")
    @Schema(description = "页码，默认 1")
    private Integer page = 1;

    @Min(value = 1, message = "页大小至少为 1")
    @Schema(description = "页大小，默认 10")
    private Integer size = 10;

<#list classInfo.fieldList as field>
<#assign fieldDescription = (field.fieldComment?has_content)?then(field.fieldComment?trim?replace('\n', ' '), field.fieldName)>
    @Schema(description = "${fieldDescription}")
    private ${field.fieldClass!"String"} ${field.fieldName};
</#list>
}
